<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>订单详情</title>
<link href="__PUBLIC__/admin/css/xc.min.css" rel="stylesheet" type="text/css" />
<link href="__PUBLIC__/admin/css/xc.admin.css" rel="stylesheet" type="text/css" />
<link href="__PUBLIC__/admin/css/page.css" rel="stylesheet" type="text/css" />
<link href="__PUBLIC__/lib/iconfont/iconfont.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="__PUBLIC__/admin/js/jquery.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/admin/js/xc.js"></script> 
<script type="text/javascript" src="__PUBLIC__/admin/js/xc.admin.js"></script>
<script type="text/javascript" src="__PUBLIC__/lib/layer/layer.js"></script>
</head>
<body>
<div class="pd-20">
  <div class="cl pd-5 bg-1 bk-gray">
    <span class="r">
      <if condition="($ores[or_wstate] eq 3)">
      <a class="btn btn-warning radius" href="javascript:;" onclick="layer_show('订单发货','__MODULE__/Order/prsendGoods?id={$ores.or_id}','600','400')" ><i class="Hui-iconfont">&#xe603;</i> 去发货</a></if>
      <a class="btn btn-success radius r ml-10 btn-shua" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a>
    </span>
  </div>
  <div class="mt-1">
    <table class="table table-border table-bordered table-hover table-bg table-sort mt-10">
      <thead>
        <tr><td colspan="8" style="background-color:#ddd"><b>基本信息</b></td></tr>
        <tr class="text-c">
          <th width="40">订单编号</th>
          <th width="60">订单号</th>
          <th width="80">会员编号</th>
          <th width="140">兑换金额</th>
          <th width="140">支付类型</th>
          <th width="100">订单状态</th>
          <th width="100">下单时间</th>
        </tr>
      </thead>
      <tr class="text-c">
        <td>{$ores.or_id}</td>
        <td>{$ores.or_batch}</td>
        <td><a onclick="layer_show('会员信息','__MODULE__/User/userShow?id={$ores.or_uid}','','510')" href="javascript:;">{$ores.or_uid}</a></td>
        <td>￥{$ores.or_gprice}</td>
        <td>{$ores.or_pname}</td>
        <td><switch name="ores.or_wstate">
          <case value="1"><span class="label label-success radius">交易成功</span></case>
          <case value="2"><span class="label label-secondary radius">待收货</span></case>
          <case value="3"><span class="label label-warning radius">待发货</span></case>
        </switch>
        </td>
        <td>{$ores.or_xtime|date='Y-m-d H:i',###}</td>
      </tr>
    </table>
    <table class="table table-border table-bordered table-hover table-bg table-sort mt-10">
      <thead>
        <tr><td colspan="7" style="background-color:#ddd"><b>收货信息</b></td></tr>
        <tr class="text-c">
          <th width="40">收件人</th>
          <th width="60">联系电话</th>
          <th width="200">收货地址</th>
          <th width="80">配送方式</th>
        </tr>
      </thead>
      <tr class="text-c">
        <td>{$ores[addre][aname]}</td>
        <td>{$ores[addre][phone]}</td>
        <td>{$ores[addre][addre]}</td>
        <td><if condition="($ores[expre] != '')">{$ores[expre][ename]}&nbsp;&nbsp;
            <if condition="($ores[expre][ecode]!='0')">
              <a class="label label-success radius" href="javascript:;" onclick="layer_show('物流信息','__MODULE__/Order/express?com={$ores[expre][ecode]}&nu={$ores[expre][enumb]}','580','440');" >物流信息</a>
            </if>
          <else /><span class="label label-danger radius">未发货</span></if>
        </td>
      </tr>
    </table>
    <table class="table table-border table-bordered table-hover table-bg table-sort mt-10">
      <thead>
        <tr class="text-c">
          <!--<th width="25"><input type="checkbox" name="" value=""></th>-->
          <th width="200" colspan="1">商品信息</th>
          <th width="80">市场价(元)</th>
          <th width="80">兑换价(元)</th>
          <th width="60">数量</th>
          <th width="150">实付款(元)</th>
        </tr>
      </thead>
      <volist name='goList' id='gvo' key='key'>
      <tr class="text-c">
        <td style=" text-align:left;padding:2px;">
          <a href="{:U('/Home/Index/iframe//Goods/details/id/'.$gvo[de_gid])}" title="{$gvo.de_gname}" target="_blank">{$gvo.de_gname}</a>
        </td>
        <td>{$gvo.de_gmoney}</td>
        <td>{$gvo.de_gprice}</td>
        <td>{$gvo.de_gnum}</td>
        <td>￥{$ores.or_zmon}</td>
      </tr>
      </volist>
    </table>
  </div>
</div>
<script type="text/javascript">
//回调函数 
function call_back_fun(v){
	layer.closeAll(); // 关闭窗口
	//ajax_get_table('myfrom1',cur_page);
	location.replace(location.href);
}
</script>
</body>
</html>